# 一、有1、2、3、4个数字，能组成多少个互不相同且无重复数字的三位数？都是多少？
for i in range(1,5):
    for j in range(1,5):
        for k in range(1,5):
            s = i*100+j*10+k
            if (i != j and i != k and j!=k):
                print(s)
            
# 二、计算利润
flag = True
while flag:
    sal = eval(input('请输入工资：'))
    if sal <= 100000 :
        s = sal * 0.1
    elif  sal <= 200000:
        s = 100000*0.1 + (sal-100000)*0.075
    elif sal <= 400000:
        s= 100000*0.1 + 100000*0.075 + (sal-200000)*0.05
    elif sal <= 600000:
        s = 100000*0.1 + 100000*0.075 + 200000*0.05 + (sal-400000)*0.03
    elif sal <= 1000000:
        s = 100000*0.1 + 100000*0.075 + 200000*0.05 + 200000*0.03 + (s-600000)*0.015
    else:
        s = 100000*0.1 + 100000*0.075 + 200000*0.05 + 200000*0.03 + 400000*0.015 + (s-1000000)*0.01
        flag = False;
    print(s)
# 三、一个整数，它加上100后是一个完全平方数，再加上268又是一个完全平方数，请问该数是多少？
import math as mh
for i in range(1,1000000):
    s = i+100
    h = i+268
    #m = mh.sqrt(s)%1
    #n = mh.sqrt(h)%1    
    m = int(mh.sqrt(s))
    n = int(mh.sqrt(h))
    if (m*m == (i+100) and n*n == (i+268)):
        print(i)
print(mh.sqrt(4)%1)
'''
0.0
'''
# 四、输入某年某月某日，判断这一天是这一年的第几天？





# 五、输入三个整数x,y,z；按从小到大排序
x = eval(input('输入x:'))
y = eval(input('输入y:'))
z = eval(input('输入z:'))

lt = [x,y,z]
lt.sort()
print(lt[0],lt[1],lt[2])

# 六、用* 输出C
'''
m = 10
n = 0
while m >  5:
    print(' '*10*(m-n),'*')        
    m = m-1
    n = n +1
'''    
# 七、输出特殊图形





# 八、输出九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(j,'*',i,'=',i*j,'\r',end=' ')
    print()
    
    
        


    



